function SetVariables(ply)
    ply:SetVar("spawnpoint", "first")
end
function Spawnpoint(ply)
    print(ply:GetVar("spawnpoint"))
    if ply:GetVar("spawnpoint") == "first" then    
        ply:SetPos(Vector(14211.4395, 1515.3296, -11842.6211))
        ply:PrintMessage(HUD_PRINTCENTER, "You wake up and feel dizzy. Go find shelter.")
    elseif ply:GetVar("spawnpoint") == "second" then
        ply:SetPos(Vector(-9089.9863, -1780.4272, -12255.8789))
    end
end
hook.Add("PlayerSpawn", "Spawnpoints", Spawnpoint)
hook.Add("PlayerInitialSpawn", "SetVar", SetVariables)

for k, v in pairs(player.GetAll()) do
    v:SetVar("spawnpoint", "first")
end


